package com.chengxiaoxiao.ai_demo.convertor;

import com.chengxiaoxiao.ai_demo.entity.KnowledgeBase;
import com.chengxiaoxiao.ai_demo.vo.form.KnowledgeBaseForm;
import org.mapstruct.Mapper;

/**
 * 知识库转换类
 *
 * @Description:
 * @Author Cheng Xiaoxiao
 * @Date: 2025/3/17 13:42
 */
@Mapper(componentModel = "spring")
public interface KnowledgeBaseConvertor {
    /**
     * 知识库表单转换为知识库对象
     *
     * @param knowledgeBaseForm 知识库表单
     * @return 知识库对象
     */
    KnowledgeBase knowledgeBase2KnowledgeBaseForm(KnowledgeBaseForm knowledgeBaseForm);
}
